package com.wisdomparking.config.result;

import java.util.HashMap;

public class Result extends HashMap<String, Object> {
	private static final long serialVersionUID = 1L;

	public Object getResData() {
		return this.get("resData").toString();
	}

	public void setResData(Object resData) {
		this.put("resData", resData);
	}

	public String getResCode() {
		return this.get("resCode").toString();
	}

	public void setResCode(String resCode) {
		this.put("resCode", resCode);
	}

	public String getResMessage() {
		return this.get("resMessage").toString();
	}

	public void setResMessage(String resMessage) {
		this.put("resMessage", resMessage);
	}
	
	public void isSuccess(boolean status) {
		this.put("status", status);
	}

	public void isSuccess() {
		this.put("status", Boolean.TRUE);
	}

	public void isFail() {
		this.put("status", Boolean.FALSE);
	}
}
